export default (async () => {
  const Bi = (await import("@/module-00-codebase/pkg-01-container")).Bi;
  try {
    // Load behaviors
    await (await import("@/module-00-codebase/pkg-04-virtual/virtual_injection01behaviorIOC")).load();
    // Load elmts(components)
    await (await import("@/module-00-codebase/pkg-04-virtual/virtual_injection02elmtIOC")).load();
    // Load routes(pages)
    await (await import("@/module-00-codebase/pkg-04-virtual/virtual_injection03pageIOC")).load();
    // Enter app
    await Bi.entrance.enter();
  } catch (ex:unknown) {
    const e = ex instanceof Error?ex:new Error(JSON.stringify(ex));
    Bi.log.error(e.message);
    Bi.loading.on(e.message);
  }
})();
